package com.daka.task;

import com.daka.service.AuctionTradeListService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author beliveli on 2017/1/3/0003
 */
@Component("Timer")
public class Timer {

    @Resource
    private AuctionTradeListService auctionTradeListService;

    @Scheduled(cron = "0 30 19 7 1 ?")
    public void run() {
        auctionTradeListService.startOnlinePay();
    }
}
